package com.lion.ball.app.models.params.update;

import java.sql.Timestamp;
import java.sql.Timestamp;

/**
 * @author Chris Chan
 * Create on 2025-10-18 01:16
 * Use for: 订单 数据更新参数
 * Explain:
 * 
 */
public class OfdOrderUpdateParam {
    // 主键
    private long id;
    // 编码
    private long code;
    // 客户编码
    private long customerCode;
    // 总价
    private int amount;
    // 消费者备注者, 例如: 不要辣, 不要香菜等, 可以为空
    private String remarks;
    // 创建时间
    private long createTime;
    // 更新时间
    private long updateTime;
    // 是否删除 0 - 未删除 1 - 已删除
    private int isDeleted;

    // 无参构造方法
    public OfdOrderUpdateParam() {
    }

    // 全参数构造方法
    public OfdOrderUpdateParam(long id, long code, long customerCode, int amount, String remarks, long createTime, long updateTime, int isDeleted) {
        this.id = id;
        this.code = code;
        this.customerCode = customerCode;
        this.amount = amount;
        this.remarks = remarks;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.isDeleted = isDeleted;
    }

    // 全参数create生成器
    public static OfdOrderUpdateParam create(long id, long code, long customerCode, int amount, String remarks, long createTime, long updateTime, int isDeleted) {
        return new OfdOrderUpdateParam(id, code, customerCode, amount, remarks, createTime, updateTime, isDeleted);
    }

    // 全参数of生成器
    public static OfdOrderUpdateParam of(long id, long code, long customerCode, int amount, String remarks, long createTime, long updateTime, int isDeleted) {
        return new OfdOrderUpdateParam(id, code, customerCode, amount, remarks, createTime, updateTime, isDeleted);
    }
    // region Getter和Setter方法
    public long getId() {
        return id;
    }

    public OfdOrderUpdateParam setId(long id) {
        this.id = id;
        return this;
    }

    public long getCode() {
        return code;
    }

    public OfdOrderUpdateParam setCode(long code) {
        this.code = code;
        return this;
    }

    public long getCustomerCode() {
        return customerCode;
    }

    public OfdOrderUpdateParam setCustomerCode(long customerCode) {
        this.customerCode = customerCode;
        return this;
    }

    public int getAmount() {
        return amount;
    }

    public OfdOrderUpdateParam setAmount(int amount) {
        this.amount = amount;
        return this;
    }

    public String getRemarks() {
        return remarks;
    }

    public OfdOrderUpdateParam setRemarks(String remarks) {
        this.remarks = remarks;
        return this;
    }

    public long getCreateTime() {
        return createTime;
    }

    public OfdOrderUpdateParam setCreateTime(long createTime) {
        this.createTime = createTime;
        return this;
    }

    public long getUpdateTime() {
        return updateTime;
    }

    public OfdOrderUpdateParam setUpdateTime(long updateTime) {
        this.updateTime = updateTime;
        return this;
    }

    public int getIsDeleted() {
        return isDeleted;
    }

    public OfdOrderUpdateParam setIsDeleted(int isDeleted) {
        this.isDeleted = isDeleted;
        return this;
    }

    // endregion Getter和Setter方法
}
